package com.st.swagger.mapper;

import com.st.swagger.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    List<Product> findAll();

    Product findById(Long id);

    List<Product> findByNameContaining(String keyword);

    int insertProduct(Product product);

    int updateProduct(Product product);

    int deleteProduct(Long id);
}
